import request from '@/utils/request.js'

// 判断用户是否需要打卡
export function getClockIn(data) {
  return request({
    url: '/author/applet/appletAuthorRest/getClockIn',
    method: 'GET',
    data: data
  })
}

// 高德api 通过经纬度换取位置
export function getAddress(data) {
  return request({
    aurl: 'https://restapi.amap.com/v3/geocode/regeo',
    method: 'GET',
    data: data
  })
}

// 打卡
export function clockIn(data) {
  return request({
    url: '/author/applet/appletAuthorRest/clockIn',
    method: 'POST',
    data: data
  })
}
